package cn.yhbk.web.modules.manager.Pojo.Entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 学生表
 * </p>
 *
 * @author 有何不可
 * @since 2023-08-05
 */
@Getter
@Setter
@TableName("tb_person_info")
@ApiModel(value = "TbStudent对象", description = "学生表")
public class TbStudent implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("学生ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("学生姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty("学号")
    @TableField("job_number")
    private Long jobNumber;

    @ApiModelProperty("身份证")
    @TableField("id_card")
    private String idCard;

    @ApiModelProperty("班级ID")
    @TableField("class_id")
    private Long classId;

    @ApiModelProperty("联系电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("学生状态")
    @TableField("status")
    private Byte status;

    @ApiModelProperty("性别(0,女，1，男)")
    @TableField("gender")
    private Boolean gender;

    @ApiModelProperty("学生与账号对应关系")
    @TableField("admin_id")
    private Long adminId;

    @ApiModelProperty("学生的辅导员id")
    @TableField("counsellor_id")
    private Long counsellorId;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

}
